package com.kate.mall.promotion.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kate.mall.common.utils.PageUtils;
import com.kate.mall.common.utils.Query;

import com.kate.mall.promotion.dao.PromotionActivityDao;
import com.kate.mall.promotion.entity.PromotionActivityEntity;
import com.kate.mall.promotion.service.PromotionActivityService;


@Service("promotionActivityService")
public class PromotionActivityServiceImpl extends ServiceImpl<PromotionActivityDao, PromotionActivityEntity> implements PromotionActivityService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PromotionActivityEntity> page = this.page(
                new Query<PromotionActivityEntity>().getPage(params),
                new QueryWrapper<PromotionActivityEntity>()
        );

        return new PageUtils(page);
    }

}